﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.SessionState;
namespace WeChat.Ajax
{
    /// <summary>
    /// InvalidSession 的摘要说明
    /// </summary>
    public class InvalidSession : IHttpHandler,IRequiresSessionState
    {

	public void ProcessRequest(HttpContext context)
	{
	    string openId = context.Session["openid"] == null ? "" : context.Session["openid"].ToString();
	    string RNG = "";
	    if (openId==null || openId=="") {
		RNG = "0";
	    }
	    context.Response.Write(RNG);
	}

	public bool IsReusable
	{
	    get
	    {
		return false;
	    }
	}
    }
}